import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a007(fd: IFeidaoAiBrowserComponent) {
	// 删除全选与全不选
	const chkall=fd.data.node.querySelector<HTMLInputElement>('[data-id="chk-all"]');
	const chk=chkall.checked;
	const chkList=fd.data.node.querySelectorAll<HTMLInputElement>('[data-id="chk-list"]');
	const lists=Array.from(chkList) as HTMLInputElement[];
	lists.forEach((value) => {          // 通过循环遍历，让表中所有的元素与，表头复选框这个元素保持一致
       value.checked = chk;
	});
}
